﻿using CL.Game.BLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace CL.Mobile.news
{
    public partial class newsview : System.Web.UI.Page
    {
        protected static int id = 0;
        protected static string content = string.Empty;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                int.TryParse(Request.QueryString["id"], out id);
                if (id > 0)
                    BindData(id);
            }
        }
        protected void BindData(int NewsID)
        {
            var Entity = new NewsBLL().QueryEntity(NewsID);
            if (Entity != null)
                content = Entity.RichText;
        }
    }
}